<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>总数</title>
<!-- 引入css -->
  {include file="Common/css"}
<!-- 引入css -->
  </head>
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
<!-- 引入菜单 -->
  {include file="Common/menu"}
<!-- 引入菜单 -->
        </div>
        <div class="top_nav">

        </div>
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>所有问题 <small></small></h3>
              </div>
                <form action="">
                    <div class="title_right">
                      <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                        <div class="input-group">
                          <input type="text" class="form-control" name="problem_title" placeholder="标题搜索">
                          <span class="input-group-btn">
                          <input type="submit" class="btn btn-default" name="" value="搜索">
                          </span>
                        </div>
                      </div>
                    </div>
                </form>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>总数<small>共{$sele_sql->total()}记录,当前第{$sele_sql->currentPage()}页/共{$sele_sql->lastPage()}页</small></h2>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <section class="content invoice">
                      <div class="row">
                        <div class="col-xs-12 table">
                          <table class="table table-striped">
                            <thead>
                              <tr>
                                  <th>编号</th>
                                  <th>类型</th>
                                  <th>项目名称</th>
                                  <th>标题</th>
                                  <th>状态</th>
                                  <th>优先级</th>
                                  <th>问题处理人</th>
                                  <!-- <th>分配任务人</th> -->
                                  <th>创建时间</th>
                                  <th>任务结束时间</th>
                                  <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                              {volist name="sele_sql" id="vo"}
                                <tr>
                                  <th scope="row">{$vo.problem_id}</th>
                                  <th>
                                    {if condition="($vo.problem_type=='0')"}
                                      <font size="4" color="#DAA520" face="Verdana">任务 
                                     {else /} {if condition="($vo.problem_type=='1')"}
                                      <font size="4" color="red" face="Verdana">缺陷
                                      {else /}  {if condition="($vo.problem_type=='2')"}
                                      <font size="4" color="#DAA520" face="Verdana">需求
                                       {/if}
                                      {/if}
                                    {/if}
                                  </th>
                                  <th>{$vo.project_username}</th>
                                  <th>{$vo.problem_title}</th>
                                  <th>
                                    <!-- 引入状态 if 判断 -->
                                    {include file="Common/type"}
                                  <!-- 引入状态 if 判断 -->
                                  </th>
                                  <th>
                                    {if condition="($vo.problem_priority=='0')"}
                                      <font size="4" color="red" face="Verdana">急 
                                    {else /} {if condition="($vo.problem_priority=='1')"}
                                      <font size="4" color="red" face="Verdana">高
                                      {else /}  {if condition="($vo.problem_priority=='2')"}
                                        <font size="4" color="#32CD32" face="Verdana">中
                                         {else /}  {if condition="($vo.problem_priority=='3')"}
                                          <font size="4" color="#32CD32" face="Verdana">低
                                          {/if}
                                        {/if}
                                      {/if}
                                    {/if}
                                  </th>
                                  <th>{$vo.problem_dealer}</th>
                                  <!-- <th>{$vo.problem_assignee}</th> -->
                                  <th>{$vo.problem_change_time}</th>
                                  <th>{$vo.problem_planned_end_date}</th>
                                  <th><a href="{:url('Allproblems/total_details')}?problem_id={$vo.problem_id}">详情</a></th>
                                </tr>
                              {/volist}
                            </tbody>
                          </table>
                          {$sele_sql}
                        </div>
                      </div>
                    </section>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
<!-- 引入js -->
  {include file="Common/js"}
<!-- 引入js -->
  </body>
</html>